﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="Hangsanxuat.aspx.cs" Inherits="Banmaytinh.AdminSP.Hangsanxuat" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 167px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="sanpham">
     <div id="FormName">QUẢN LÝ DANH MỤC HÃNG SẢN XUẤT</div>
    <asp:Panel ID="Panelview" runat="server" CssClass="panelview">
        <table style="width: 100%;">
            <tr>
                <td>
                    <div class="control">
                        <ul>
                            <li>
                                <asp:LinkButton CssClass="add" runat="server" ID="lbtnThemmoi" OnClick="lbtnThemmoi_Click">Thêm mới</asp:LinkButton>
                            </li>
                            <li>
                                <asp:LinkButton CssClass="delete" runat="server" ID="lbtnXoa" OnClick="lbtnXoa_Click">Xóa</asp:LinkButton>
                            </li>
                            <li>
                                <asp:LinkButton CssClass="reload" runat="server" ID="btnLamlai">Làm mới</asp:LinkButton>
                            </li>
                            <li>
                                <asp:LinkButton CssClass="back" runat="server" ID="lbtnTrolai">Trở lại</asp:LinkButton>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        <asp:GridView ID="grHangsanxuat" runat="server" AllowSorting="True" AllowPaging="true"
            CssClass="mygrid" AutoGenerateColumns="False" PageSize="4" PagerStyle-CssClass="pagerstyle"
            AlternatingRowStyle-CssClass="alt" OnPageIndexChanging="grHangsanxuat_PageIndexChanging"
            OnRowCommand="grHangsanxuat_RowCommand" Height="65px" Width="738px">
            <HeaderStyle CssClass="trhead" />
            <Columns>
                <asp:TemplateField ItemStyle-CssClass="tdCenter">
                    <HeaderTemplate>
                        <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="false" CssClass="chkHeader" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server" CssClass="chkItem" />
                    </ItemTemplate>
                    <ItemStyle CssClass="tdCenter" />
                </asp:TemplateField>
                <asp:BoundField DataField="Mahangsanxuat" HeaderText="Mã hãng sản xuất" ItemStyle-CssClass="Hidden"
                    HeaderStyle-CssClass="Hidden" />
                <asp:BoundField DataField="Tenhangsanxuat" HeaderText="Tên hãng sản xuất" />
                <asp:TemplateField>
                    <HeaderTemplate>
                        Chức năng</HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtn_CMDSua" runat="server" CommandArgument='<%# Eval("Mahangsanxuat") %>'
                            CommandName="cmdEdit">Sửa</asp:LinkButton>
                        <asp:LinkButton ID="lbtn_CMDXoa" runat="server" CommandArgument='<%# Eval("Mahangsanxuat") %>'
                            CommandName="cmdDelete" OnClientClick="return confirm('Bạn có muốn xóa không?');">Xóa</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <asp:Panel ID="Paneledit" runat="server" Height="123px" CssClass="paneledit" Visible="False">
        <table style="width: 100%; padding-top: 50px;">
            <tr>
                <td >
                    Hãng sản xuất:
                </td>
                <td width="250px" >
                    <asp:TextBox ID="txtTenhangsanxuat" runat="server" Width="246px"></asp:TextBox>
                    </td>
                <td >
                   
                </td>
                <td>
                    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                </td>
                <td class="center">
                    <asp:Button ID="btnLuu" runat="server" OnClick="btnLuu_Click" Text="Lưu " />
                    <asp:Button ID="btnHuy" runat="server" CssClass="Groupbutton" OnClick="btnHuy_Click"
                        Text="Hủy bỏ" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
